import https from './public'

// 多条件查询预约
export const getPreSearchList = (params) => {
  return https.fetchGet('https://mp.wwtsz.com:8812/manager/getPreSearchList', params)
}

// 预约确认
export const registered = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/registered', params)
}

// 现场挂号
export const onSiteRegistration = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/onSiteRegistration', params)
}

// 加号
export const addRegistration = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/addRegistration', params)
}

// 查询预约
export const checkData = (params) => {
  return https.fetchGet('https://mp.wwtsz.com:8812/manager/checkData', params)
}

// 叫号
export const callNumber = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/callNumber', params)
}

// 完成
export const carryOut = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/carryOut', params)
}

// 过号
export const passNumber = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/passNumber', params)
}

// 更新
export const updatePre = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/update', params)
}

export const deletePre = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/delete', params)
}

// 近7日预约时间段
export const getTimeSlotList = (params) => {
  return https.fetchGet('https://mp.wwtsz.com:8811/dateTimeSlot', params)
}

// 所有医生
export const allDoctor = (params) => {
  return https.fetchGet('https://mp.wwtsz.com:8811/allDoctor', params)
}

// 更新医生资料
export const updateDoctor = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/doctor/update', params)
}

// 多条件查询所有通知
export const getNoticeList = (params) => {
  return https.fetchGet('https://mp.wwtsz.com:8812/manager/getNoticeList', params)
}

// 添加通知
export const addNotice = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/addNotice', params)
}

// 更新通知
export const updateNotice = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/updateNotice', params)
}

// 删除通知
export const delNotice = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/delNotice', params)
}

// 查询诊所介绍
export const getClinic = (params) => {
  return https.fetchGet('https://mp.wwtsz.com:8812/manager/clinic/checkData', params)
}

// 更新诊所介绍
export const updateClinic = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/clinic/update', params)
}

// 查询所有养生知识
export const getAllHealth = (params) => {
  return https.fetchGet('https://mp.wwtsz.com:8812/manager/health/all', params)
}

// 查询养生知识
export const getHealth = (params) => {
  return https.fetchGet('https://mp.wwtsz.com:8812/manager/health/checkData', params)
}

// 更新养生知识
export const updateHealth = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/health/update', params)
}

// 更新养生知识
export const addHealth = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/health/add', params)
}

// 查询下一个7天的工作情况
export const checkAllWorkDay = (params) => {
  return https.fetchGet('https://mp.wwtsz.com:8812/manager/workDay/checkAll', params)
}

// 调休
export const restWorkDay = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/workDay/rest', params)
}

// 获取所有时间段详情
export const getAllTimeSlot = (params) => {
  return https.fetchGet('https://mp.wwtsz.com:8812/manager/timeSlot/all', params)
}

// 新增时间段
export const addTimeSlot = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/timeSlot/add', params)
}

// 修改时间段
export const updateTimeSlot = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/timeSlot/update', params)
}

// 删除时间段
export const delTimeSlot = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/timeSlot/del', params)
}

//获取近7天时间段
export const getSevenTimeSlot = (params) => {
  return https.fetchGet('https://mp.wwtsz.com:8812/manager/timeSlot/seven', params)
}

//修改放号队列内某天的某一时间段的状态码
export const updateTimeSlotQueue = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/timeSlotQueue/update', params)
}

// 获取系统通知
export const getSystemInformation = (params) => {
  return https.fetchGet('https://mp.wwtsz.com:8812/manager/wx/getSystem', params)
}

//  更新系统通知
export const updateSystemInformation = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/wx/updateSystem', params)
}

// 注册
export const register = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/user/register', params)
}

// 登录
export const login = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/user/login', params)
}

// 多条件查询所有用户
export const getAdminList = (params) => {
  return https.fetchGet('https://mp.wwtsz.com:8812/manager/getUserList', params)
}

// 更新用户
export const updateAdmin = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/updateUser', params)
}

// 删除用户
export const delAdmin = (params) => {
  return https.fetchPost('https://mp.wwtsz.com:8812/manager/delUser', params)
}
